<?php
/**
 * created by zzy
 * date: 2017/10/24 9:40
 */
namespace App\Api\Service\Routes;

use Dingo\Api\Routing\Router;

class SellerRoute
{
    public function map(Router $router)
    {
        $router->group(['namespace' => 'Seller\Controllers', 'prefix'=>'seller'], function ($router) {

            //供应商
            $router->any('list', 'IndexController@lists');
            $router->any('edit', 'IndexController@edit');
            $router->any('detail', 'IndexController@detail');
            $router->any('del', 'IndexController@del');
            $router->any('level-list', 'IndexController@level');
            //供应商材料
            $router->any('product-list', 'ProductController@lists');
            //采购
            $router->any('purchase-list', 'PurchaseController@lists');
            $router->any('purchase-back-list', 'PurchaseController@backList');
            $router->any('purchase-back-detail', 'PurchaseController@backDetail');
            //账单
            $router->any('bill-edit', 'BillController@edit');
            $router->any('bill-list', 'BillController@lists');
            $router->any('bill-back-add', 'BillController@backAdd');
            //供应商的客户(工厂)
            $router->any('company-list', 'CompanyController@lists');
            $router->any('company-product-list', 'CompanyController@productList');
            $router->any('company-bill-list', 'CompanyController@billList');
            $router->any('company-detail', 'CompanyController@detail');
        });
    }
}